home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2005 November / WNnov2005.iso / Windows / Indispensables / Movie Collection / MovieCollection5403.exe / {app} / web / FreeBrowser / films.xsl < prev    next >
Extensible Markup Language  |  2005-08-03  |  1KB  |  42 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:output method="html" media-type="text/html; charset=ISO-8859-1"/>
  4.  
  5. <xsl:template match="/">
  6.    <html>
  7.       <body>
  8.          <a href="/mc">Nouvelle recherche</a> - RΘsultat de la recherche: <xsl:value-of select="count(//films/film)"/> film(s) trouvΘ(s).
  9.           <hr noshade="1" />
  10.  
  11.          <div>
  12.             <xsl:apply-templates select="//films"/>
  13.          </div>
  14.  
  15.           <hr noshade="1" />
  16.          <a href="/mc">Nouvelle recherche</a>
  17.       </body>
  18.    </html>
  19. </xsl:template>
  20.  
  21. <xsl:template match="//films">
  22.    <table border="0" cellpadding="0" cellspacing="0" width="100%">
  23.    <xsl:for-each select="film">
  24.       <tr>
  25.          <td>
  26.             <a>
  27.                <xsl:attribute name="href">../mc?action=film&idx=<xsl:value-of select="@idx"/></xsl:attribute>
  28.                <xsl:value-of select="@nom"/>
  29.             </a>
  30.          </td>
  31.          <td>
  32.             <xsl:value-of select="@ref"/> 
  33.          </td>
  34.       </tr>
  35.    </xsl:for-each>
  36.    </table>
  37.    
  38. </xsl:template>
  39.  
  40. </xsl:stylesheet>
  41.  
  42.